package App.Model.message;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Message implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    protected String sender;//发送者
    protected String getter;//接收者
    protected String content;//message
    protected Date sendTime;//发送时间
    protected String mesType;//消息类型
    protected List<Message> messages;//一连串的消息,用于发送 消息串 或者 离线消息
    /*暂时放入 原FileMessage*/
    private byte[] fileBytes = null; //文件本体
    private long fileuniquenum = 0;//文档的唯一标识数字:发送的事件
    private String dest; //文件目的地路径
    private String src; //源文件路径

    public String getMesType() {
        return mesType;
    }

    public void setMesType(String mesType) {
        this.mesType = mesType;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getGetter() {
        return getter;
    }

    public void setGetter(String getter) {
        this.getter = getter;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public byte[] getFileBytes() {
        return fileBytes;
    }

    public void setFileBytes(byte[] fileBytes) {
        this.fileBytes = fileBytes;
    }

    public long getFileuniquenum() {
        return fileuniquenum;
    }

    public void setFileuniquenum(long fileuniquenum) {
        this.fileuniquenum = fileuniquenum;
    }

    public String getDest() {
        return dest;
    }

    public void setDest(String dest) {
        this.dest = dest;
    }

    public String getSrc() {
        return src;
    }

    public void setSrc(String src) {
        this.src = src;
    }

    public List<Message> getMessages() {
        return messages;
    }

    public void setMessages(List<Message> messages) {
        this.messages = messages;
    }
}
